#include <iostream>
#include <vector>
using namespace std;

int main()
{
    vector<double> scorevector; // 创建向量
    scorevector.push_back(88);
    scorevector.push_back(78);

    for (int i = 0; i < scorevector.size(); i++)
    {
        cout << scorevector[i] << endl;
    }

    // 迭代器
    for (vector<double>::iterator it = scorevector.begin(); it != scorevector.end(); it++)
    {
        cout << *it << endl;
    }
}
